{include 'common/header.html'}
<body>
<header>
<ul>
<li><a href="{$this->urlCreate('admin','index')}" style="z-index: 50;">管理主页</a></li>
<li><a href="#" style="z-index: 49;">版块管理</a></li>
</ul>
</header>

<div id="main">
<div id="subtitle">{$forum['name']} - 版块管理</div>
{if(!empty($sections))}
<ol style="display: block;margin: 1em 2em 1em;">
{foreach $sections as $section}

<li>{$section['name']}&nbsp;[ <a href="{$this->urlCreate('admin','topic',array('id'=>$section['id']))}">管</a> | <a href="{$this->urlCreate('admin','section_delete',array('id'=>$section['id']))}" onclick="return confirm('确定删除？');">删</a> | <a href="{$this->urlCreate('admin','section_change',array('id'=>$section['id']))}">改</a> ]</li>

{/foreach}
</ol>
{else}

<div style="font: 1.2em;color: #EE7700;margin: 1em 2em 1em;">暂无版块</div>

{/if}
<div id="subtitle">增加版块</div>
<div id="box">
<form action="" method="post">
<label for="name">版块名称</label>
<input type="text" id="name" name="name" style="margin: 1em;display: block;" />
<span style="display: block;margin: 3px 1em 3px;color: red;">{$tip}</span>
<input type="submit" name="submit" value="提交" style="margin: 1em;display: block;width: 64px;height: 24px;margin-left: 3em;" />
</form>
</div>
</div>
{include 'common/footer.html'}
</body>
</html>